﻿using CID.Domain.Audit;
using CID.Domain.Development;
using CID.Domain.Operations;
using CID.Domain.Users;
using NHibernate;

namespace CID.Domain.Persistence.Tests.Audit
{
    static class DataProvider
    {
        #region ReleaseDeploymentLog
        public static ReleaseDeploymentLog CreateReleaseDeploymentLog(ISession session, IRelease release, IEnvironment environment, IUser responsible)
        {
            return new ReleaseDeploymentLog(Development.DataProvider.GetRelease(session, release), Operations.DataProvider.GetEnvironment(session, environment), Users.DataProvider.GetUser(session, responsible));
        }
        #endregion
    }
}
